<style type="text/css">
#content .details {
    width: 75%;
    margin: 15px auto;
    border: 1px solid #A9A9A9;
}

#content .details tr {
    background-color: #F2F2F2;
}

#content .details td {
    border: none;
    padding: 12px 5px;
}

#content .details td:nth-child(1) {
    text-align: right;
    width: 20%;
    min-width: 100px;
    font-size: 16px;
}

#content .officers {
    margin-bottom: 15px;
}

#content .members {
    margin-top: 15px;
}

#content .members td {
    text-align: left;
    width: 25%;
}

#content .members td:nth-child(1) {
    text-align: center;
    width: 10%;
}

#content .members td:nth-child(4) {
    text-align: center;
    width: 10%;
}

.button-link {
    display: block;
    width: 100px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #C9C9C9;
    box-shadow: 3px 3px 6px #484848;

}
</style>


<div id="content">
    <?php if ($group): ?>
        <h2><?=ucwords($group['group_name']);?></h2>
    <?php endif; ?>

    <br /><br />

    <?php if (isset($officerIDs) && isset($members)): ?>
        <table class="officers">
            <tr><th colspan="4">Officers</th></tr>
            <tr><th>Officer</th><th>Rank</th><th>Member Name</th><th>Score</th></tr>
            <?php foreach ($members as $rank => $member): ?>
                <?php $officer_check = (in_array($member['user_id'], $officerIDs)) ? 'checked="checked"' : ''; ?>
                <tr>
                    <td><input type="checkbox" id="user_<?=$member['user_id'];?>" name="user_<?=$member['user_id'];?>" <?=$officer_check;?> /></td>
                    <td><?=$rank + 1;?></td>
                    <td><?=$member['first_name'] . ' ' . $member['last_name'];?></td>
                    <td><?=$member['user_score'];?></td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>
</div> <!-- #content -->